@extends('admin.common.base-master')

@section('html-head')
    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />
@endsection

@section('html-body')
        <!-- content start -->
    <div id="content">
        <!-- cur-position start -->
        <div id="cur-position">
            <span class="tit">当前位置：</span>
            <a href="#">用户列表</a>
        </div>
        <!-- cur-position end -->

        <!--filter-box start-->
        <div class="filter-box clearfix">
            <div class="fl">
                <span class="search-bd">
                {{--<form id="form_promoter">--}}
                    <input type="text" class="search-ipt" name="pro_name" placeholder="粉丝昵称" value="" id="nickname">
                    <input class="search-smt" type="button">
                    {{--</form>--}}
            </span>
            </div>
        </div>
        <!--filter-box end-->

        <div class="table-box">
            <table class="table">
                <thead>
                <tr>
                    <th>就诊ID</th>
                    <th>昵称</th>
                    <th>真实姓名</th>
                    <th>手机号</th>
                    <th>出生日期</th>
                    <th>省份</th>
                    <th>地区</th>
                    {{--<th>操作</th>--}}
                </tr>
                </thead>
                <tbody id="fansinfo">
                    @if($userinfos && count($userinfos) > 0)
                        @foreach($userinfos as $userinfo)
                        <tr>
                            <td>{{$userinfo->uid}}</td>
                            <td class="account-td">
                        <span class="photo">
                            <img src="{{route('Api.Image.Show',['id'=>$userinfo->portrait_id])}}" alt="">
                        </span>
                                <div class="info-box">
                                    <p>
                                        <span class="name">{{$userinfo->nick}}</span>
                                        @if((int)$userinfo->sexual == 0)
                                        <img class="sex" src="{{url('/images/girl.gif')}}" alt="" style="">
                                            @elseif((int)$userinfo->sexual == 1)
                                            <img class="sex" src="{{url('/images/boy.gif')}}" alt="" style="">
                                        @endif
                                    </p>
                                    <p class="star-level-box">
                                        <span class="num-level"></span>
                                    </p>
                                </div>
                            </td>
                            <td>{{$userinfo->realname}}</td>
                            <td>{{$userinfo->phone}}</td>
                            <td>{{$userinfo->birthday}}</td>
                            <td>{{$userinfo->province}}</td>
                            <td>{{$userinfo->city}}</td>
                            {{--<td><a class="btnLump btnLump1" href="">查看</a></td>--}}
                        </tr>
                        @endforeach
                        @endif
                </tbody>
                <tfoot class="order-gl">
                <tr>
                    <td>

                    </td>
                </tr>
                </tfoot>
            </table>
        </div>
        <div>
            {!! $userinfos->render() !!}
        </div>
    </div>
    <!-- content end -->

    <!-- 查看详情弹窗 end -->
    <script type="text/javascript">

        $(function() {
            jQuery.ajaxSetup({
                case: false,
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                }
            });
        });
    </script>
@endsection